CC = gcc
target=test
SRC = ${wildcard  *.c} 
OBJ = $(patsubst %.c, %.o, ${SRC})
CFLAGS += -O3 -Wall
${target}: ${OBJ}
	${CC} ${OBJ} -o $@ 
$(OBJ):%.o:%.c
	$(CC) ${CFLAGS} -c $< -o $@ $(INC)
clean:
	rm -f ${OBJ}
	rm -f *.o
	rm -f *~
